package com.blackteachan.zlb.demo;

import com.blackteachan.zlb.bean.ZlbUser;
import com.blackteachan.zlb.bean.ZlbUserToken;
import com.blackteachan.zlb.service.ZlbUserService;
import com.blackteachan.zlb.service.impl.ZlbUserServiceImpl;

/**
 * @author blackteachan
 * @since 2021-11-25 17:40
 */
public class DemoApplication {

    public static void main(String[] args) {
        ZlbUserService zlbUserService = new ZlbUserServiceImpl();

        String ticket = "abc-ticket";

        ZlbUserToken zlbUserToken = zlbUserService.ticketValidation(ticket);
        System.out.println(zlbUserToken);

        ZlbUser zlbUser = zlbUserService.getUserInfo(zlbUserToken.getToken());
        System.out.println(zlbUser);
    }

}
